#include <iostream>
using namespace std;

int num1=20;

void fn1(int num2)
{
    cout<<"num1: "<<num1<<endl;
    cout<<"num2: "<<num2<<endl;
}

void fn2()
{
    num1=666;
}
void fn3(int *num1)
{
    *num1 = 12345;
}

int main()
{
    fn3(&num1);
    fn1(5);

    fn2();
    fn1(5);

    return 0 ;
}